﻿<%@ Page Language="C#" MasterPageFile="~/Theme/Stander/Stander.master" AutoEventWireup="true" CodeFile="User.aspx.cs" Inherits="Users_User" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2>用户信息</h2>
<div class="form">
<ul>
<li><label for='<%=txtUserName.ClientID %>' >用户名:</label>
    <asp:TextBox ID="txtUserName" ReadOnly="true" Enabled="false" 
        runat="server"></asp:TextBox></li>
<% if(IsEditable) { %>
<li><label>修改密码:</label>
    <asp:HyperLink ID="HyperLink1" NavigateUrl="~/Users/ChangePassword.aspx" 
        runat="server">修改密码</asp:HyperLink>
</li>
<%} %>
<li><label for='<%=txtUserEmail.ClientID %>'>Email:</label>
            <asp:TextBox ID="txtUserEmail" runat="server"></asp:TextBox></li>
<li><label for='<%=txtUserNickName.ClientID %>' class="left">真实姓名:</label>
            <asp:TextBox ID="txtUserNickName"  runat="server" CssClass="field"></asp:TextBox></li>
<li><label for='<%=txtUserMobile.ClientID %>' class="left">手机:</label>
            <asp:TextBox ID="txtUserMobile" runat="server" CssClass="field"></asp:TextBox></li>
<li><label for='<%=txtUserTel.ClientID %>' class="left">电话:</label>
            <asp:TextBox ID="txtUserTel" runat="server" CssClass="field"></asp:TextBox></li>
<li><label for='<%=txtUserFax.ClientID %>' class="left">传真:</label>
            <asp:TextBox ID="txtUserFax" runat="server" CssClass="field"></asp:TextBox></li>
<li><label for='<%=txtUserWebSite.ClientID %>' class="left">网站:</label>
            <asp:TextBox ID="txtUserWebSite" runat="server" CssClass="field"></asp:TextBox></li>
<li><label for='<%=txtUserIM.ClientID %>' class="left">QQ/MSN:</label>
            <asp:TextBox ID="txtUserIM" runat="server" CssClass="field"></asp:TextBox></li>
<li><label for='<%=txtUserOfficeAddress.ClientID %>' class="left">办公地址:</label>
            <asp:TextBox ID="txtUserOfficeAddress" runat="server" CssClass="field long"></asp:TextBox></li>
<li><label for='<%=txtUserHomeAddress.ClientID %>' class="left">家庭地址:</label>
            <asp:TextBox ID="txtUserHomeAddress" runat="server" CssClass="field long"></asp:TextBox></li>
<li><label for='<%=txtUserDescription.ClientID %>' class="left">个人简介:</label>
            <asp:TextBox ID="txtUserDescription" CssClass="editArea long"  rows="10" 
                runat="server" TextMode="MultiLine"></asp:TextBox></li>
<li><label class="left">角色: </label>
           <span id="userRoles" runat="server"></span></li>
    <% if (IsEditable)
       { %>
<li><asp:Button ID="btnSaveUser" runat="server" Text="保存" CssClass="button " OnClick="btnSaveUser_Click" /></li>
    <% } %>
<asp:PlaceHolder ID="PlaceHolderSettingRoles" Visible="false" runat="server">
<li><label class="block">设置角色: </label>
    <asp:CheckBoxList ID="CheckBoxListRoles" runat="server" CssClass="checkBoxList" 
        RepeatDirection="Horizontal" RepeatLayout="Flow"></asp:CheckBoxList></li>
<li><asp:Button ID="btnSaveRoles" runat="server" 
    Text="设置角色" OnClick="btnSaveRoles_Click" />
</li>
</asp:PlaceHolder>
<asp:PlaceHolder ID="SettingUserManagerRegionPannel" Visible="false" runat="server">
<li><label class="block">所负责区域的媒介:</label>
    <asp:CheckBoxList ID="RegionsCheckBoxList"
        runat="server" CssClass="checkBoxList" 
        RepeatDirection="Horizontal" RepeatLayout="Flow"
        DataTextField="Name" DataValueField="Id">
    </asp:CheckBoxList>
</li>
<li><asp:Button ID="SaveRegionsButton" CssClass="button" runat="server" Visible="false"
                Text="设置区域" OnClick="SaveRegionsButton_Click" /></li>
</asp:PlaceHolder>
</ul>
</div>         
</asp:Content>

